package com.leo.springbootmultithreadbasic.communication.threadlocal;


/**
 * @author Leo
 * @version V1.0
 */
public class MainDemo {
    public static void main(String[] args) {
//        test();
        test2();
    }

    /**
     * 测试场景：演示线程拿到属于自己的数据
     */
    public static void test() {
        // thread A
        new Thread(new MyRunnableA()).start();

        // thread B
        new Thread(new MyRunnableB()).start();
    }

    public static void test2() {
        final ThreadLocal<String> THREAD_LOCAL_STORAGE = new ThreadLocal<>();

    }
}
